package com.foreknow.elmboot.mapper;

import com.foreknow.elmboot.po.Business;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface BusinessMapper {

    /**
     * 根据orderTypeId查询成员信息
     * @param orderTypeId
     * @return
     */
    @Select("select * from business where orderTypeId=#{orderTypeId}")
    List<Business> getOrderByTypeId (Integer orderTypeId);

    /**
     * 根据bussinessId查询摸一个商家的信息
     * @param businessId
     * @return
     */
    @Select("select * from business where businessId=#{businessId}")
    Business getBusinessByTypeId (Integer businessId);
}
